package Util;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class BindMethod {
	private Method method_;
	private Object obj_;
	private Object[] args_;
	
	public BindMethod(Method method, Object obj, Object[] args)
	{
		method_ = method;
		obj_ = obj;
		args_ = args;
	}
	
	public void invoke() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
	{
		method_.invoke(obj_, args_);
	}
}
